﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Views/Shared/Blog.Master" CodeBehind="ShowPost.aspx.cs" Inherits="VladanStrigoNET.Samples.Blogged.Views.ShowPost" %>
<%@ Import namespace="VladanStrigoNET.Samples.Blogged.Controllers"%>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h1><%= ViewData.Title %> (<%= ViewData.Id %>)</h1>
    <h2>Posted on <%= ViewData.PostedOn %></h2>
    <p><%= ViewData.Body %></p>

    <%= Html.ActionLink<BlogController>(x => x.Delete(ViewData.Id), "Delete")%>
    <%= Html.ActionLink<BlogController>(x => x.ShowPosts(null, null), "Return home") %>
</asp:Content>
